#include "process.h"
#include<stdio.h>
#include<unistd.h>
double total = 1024.0;
double speed = 1.0;

void Download()
{
    int cur = 0;
    while(cur <= total)
    {
        FlushProcess(total,cur);

        usleep(3000);//下载数据
        cur+= speed;
    
    }
    printf("\ndownload: %f mb",total);

}

int main()
{
    Download();
    return 0;
}
